package com.UnionPayCenter.mapper;

import com.UnionPayCenter.distribution.entity.DistributionSnDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface DistributionSnDOMapper {
    int deleteByPrimaryKey(Long disSn);

    int insert(DistributionSnDO record);

    int insertSelective(DistributionSnDO record);

    DistributionSnDO selectByPrimaryKey(Long disSn);

    int updateByPrimaryKeySelective(DistributionSnDO record);

    int updateByPrimaryKey(DistributionSnDO record);

    int countLevelRecordByUserId(DistributionSnDO record);

    Integer sumShareAmountByUserId(DistributionSnDO distributionSnDO);

    List<DistributionSnDO> listShareAmountByUserId(DistributionSnDO distributionSnDO);

}